@echo off
for /f "tokens=3*" %%i in ('reg query "HKLM\Software\Microsoft\Microsoft SDKs\Windows" /v CurrentInstallFolder') do set SdkPath=%%i %%j
if not [%SdkPath:~-1%]==[\] set SdkPath=%SdkPath%\
"%SdkPath%bin\xsd.exe" "%~dp0\WorkItemChangedEvent.xsd" /classes /l:CS /n:Broadbeach.Core.Tfs /o:"%~dp0."